package com.hs.sentinelr.handler;

import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * uri限流方式
 */
@Component
public class UriKeyResolver implements KeyResolver {

    @Override
    public String resolve(HttpServletRequest request, ProceedingJoinPoint pjp) {
        return request.getRemoteAddr();
    }
}
